//
//  RSBaseWebViewController.h
//  StaffTax
//
//  Created by 侯伟 on 2020/3/13.
//  Copyright © 2020 侯伟. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "RSWebView.h"
#import "RSWebView+Proxy.h"

NS_ASSUME_NONNULL_BEGIN

@interface RSBaseWebViewController : UIViewController<WKNavigationDelegate,WKUIDelegate>

/// web
@property(nonatomic,strong,readonly) RSWebView* webView;

/// 自定义title  默认从网页获取
@property(nonatomic,assign)BOOL cutsomerTitle;

/// 请求地址
@property(nonatomic,copy)NSURL* URL;

/// 加载URL
/// @param url -
- (void)loadURL:(NSURL*)url;

/// 加载URL String
/// @param urlStr -
- (void)loadURLStr:(NSString*)urlStr;

#pragma mark -- Navigation
/// 关闭
- (void)close;

/// 返回
- (void)goBack;

///向前
- (void)forward;

@end


@interface RSBaseWebViewController (Open)

+ (RSBaseWebViewController*)openUrlString:(NSString*)urlStr;

+ (RSBaseWebViewController*)openURL:(NSURL*)url;

@end

NS_ASSUME_NONNULL_END
